package com.example.bean;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Author: fxbin
 * @Date: 2018/5/25 09:14
 * @Description:
 */
@Setter
@Getter
@ToString
public class JsonThirdObject {

    private Integer age = 333;
    private String name = "CCC";
    private Date datetime = new Date();
    private List<String> message;


    public JsonThirdObject() {
        this.message = new ArrayList<String>(){
            {
                add("CCC JSON is built on two structures:");
                add("CCC value can be a string in double quotes, or a number, or true or false or null, or an object or an array. These structures can be nested.");
                add("CCC array is an ordered collection of values. An array begins with [ (left bracket) and ends with ] (right bracket). Values are separated by , (comma).");
                add("CCC string is a sequence of zero or more Unicode characters");
            }
        };
    }

}    